<?php 
/*------------------------------------------------------------------------
# com_company - company management 
# @author    pipapai.com
-------------------------------------------------------------------------*/

defined('_JEXEC') or die;

OC_Util::$styles = array();

if(isDevMode()) {
   OCP\Util::addStyle('company', 'company');
   OCP\Util::addScript('company', 'employerinfo');
} else {
   OCP\Util::addStyle('static', 'company');
   OCP\Util::addScript('static', 'apps/company.employerinfo.min');
}

$lang = PFactory::getLanguage();
$lang->load("com_jobs", JPATH_SITE, "zh-CN");
$isajax = isAjaxMode(); 
$user = PFactory::getMasterUser(); 
$session = PFactory::getSession(); 
?>

<script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('company/js', 'company.php'));?>"></script>
<div id="regemployer">
<form id="regempform" class="profile" action="<?php echo OC_Helper::linkToRoute("company_saveregdetail"); ?>" method="post" name="regempform">  
	<div class="row-fluid oneconn_margin">
	   <div class="span2 visible-desktop">&nbsp;</div>
	   <div class="span8 oneconn_box">
	      <div class="lgrg_title clearfix"><span class="pull-left"><h5>企业用户注册 - 完善公司信息</h5></span><span class="pull-right"><em class="redstar">*</em><span class="medium">表示必须填写</span></span></div>
	      
	      <div class="lgrg_form">
	               <div class="form-horizontal">
	                  <div class="control-group">
	                     <label class="control-label key">公司名称:</label>
	                     <div class="controls">
	                        <span class="only_text" style="color:#333333;"><strong><?php echo $user->name; ?></strong></span>
	                     </div>
	                  </div>
	                  <div class="control-group">
	                     <label class="control-label key"><span class="required">*</span>所在地区</label>
	                     <div class="controls">
                           <?php echo JobHelper::getSelectProvince("id_state", '', 0, "class='slt_mid'"); ?>
                           <select id="id_city" name="id_city"></select>
                           <input type="hidden" id="state" name="state" value="" />
                           <input type="hidden" id="city" name="city" value="" />
                           <label for="id_city" class="error" style="display:none">请选择地区</label>
	                     </div>
	                  </div>
	                  <div class="control-group">
	                     <label class="control-label key"><span class="required">*</span>公司性质</label>
	                     <div class="controls">
                           <?php echo JobHelper::getSelectCompType('id_comp_type', '', 0, "class='slt_mid'");?>
	                     </div>
	                  </div>
                      <div class="control-group">
	                     <label class="control-label key"><span class="required">*</span>公司行业</label>
	                     <div class="controls">
                            <input type="text" name="industry_name" id="industry_name" style="width:270px;" value=""/><a id="selectindustry" class="ppp_whitebtn whitebtn" href="javascript:;" style="margin-left:5px;">选择行业</a>
                            <input type="hidden" name="id_industry" id="id_industry" value="" />
	                     </div>
	                  </div>
	                  <div class="control-group">
	                     <label class="control-label key"><span class="required">*</span>公司规模</label>
	                     <div class="controls">
                           <?php echo JobHelper::getSelectCompSizeType('id_size_type', '', 0, "class='slt_mid'"); ?>
	                     </div>
	                  </div>
	                  <div class="control-group">
	                     <label class="control-label key"><span class="required">*</span>联系人</label>
	                     <div class="controls">
	                        <input type="text" name="contact_name" id="contact_name" class="input-xlarge"/>
	                     </div>
	                  </div>
	                  <div class="control-group">
	                     <label class="control-label key"><span class="required">*</span>联系电话</label>
	                     <div class="controls">
	                        <input type="text" name="phone" placeholder="手机号码 或 区号-固定电话-分机号" id="phone" class="input-xlarge"/>
	                     </div>
	                  </div>
	                  <div class="control-group">
	                     <label class="control-label key"><span class="required">*</span>公司地址</label>
	                     <div class="controls">
	                        <input type="text" name="address" id="address" class="input-xlarge"/>
	                     </div>
	                  </div>
	                  <div class="control-group">
	                     <div class="controls">
	                        <button type="submit" class="btn btn-info">&nbsp;&nbsp;保存&nbsp;&nbsp;</button>
                           <span class='error server'></span>
	                     </div>
	                  </div>
	               </div>                        
	      </div>
	   </div>
	   <div class="span2 visible-desktop">&nbsp;</div>
	</div>   
   <input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken']; ?>" id="requesttoken">
</form>
</div>

<!--  公司行业 dialog  -->         
<div class="modal hide fade resume_dialogposition selectwork_dialog" style="position:absolute;" id="selectindustry_dialog">
   <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h3>请选择行业</h3>
   </div>
   <input type="hidden" id="select_work_id">
   <input type="hidden" id="select_work_text">
   <div class="modal-body">
   </div>
   <div class="modal-footer nobgcolor">
      <a href="javascript:;" class="btn removeselected">清空选择</a>
   </div>
</div>

<?php
if($isajax) {
   // just output the form
   exit; 
}

